<?php
/**
 * 分成比例、范围配置
 * lihuawei
 * 2020.09.24
 */
namespace App\Models\SociatyDB;

use Illuminate\Database\Eloquent\Model;

class IncomeRateConf extends Model{

    protected $connection = 'mysql_sociaty';

    protected $table = 'sc_income_rate_conf';

    protected $primaryKey = 'id';

    protected $fillable = [
        'id',
        'coin_min',
        'coin_max',
        'rate',
        'admin_id',
        'type',
        'add_time'
    ];

    public $timestamps = false;

    public function admin()
    {
        return $this->hasOne('App\Models\MainDB\Admin', 'admin_id', 'admin_id');
    }
}